package com.lry;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class Start {
    public static void main(String[] args) throws IOException {

        List<Node> nodes = new ArrayList<>();
        for(int i=1;i<=3;i++){
            Node node = new Node("node"+i);
            nodes.add(node);
        }

        for(Node node:nodes){
            node.registerNodes(nodes,node);
        }

        System.in.read();
    }
}
